package com.taikang.service.impl;

import com.taikang.dao.TaskDao;
import com.taikang.entity.ReportRecord;
import com.taikang.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhai on 16/5/17.
 */
@Service
public class TaskServiceImpl implements TaskService {

    private TaskDao taskDao;

    @Autowired
    public void setTaskDao(TaskDao taskDao) {
        this.taskDao = taskDao;
    }

    @Override
    public void createReport(ReportRecord reportRecord) {
        taskDao.create(reportRecord);
    }

    @Override
    public ReportRecord getByTaskId(Integer taskId) {
        return taskDao.getByTaskId(taskId);
    }
}
